<html>
	<head>
    	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    </head>
    <body>
		<?php
			$eyes=array(0,0,0,0,0,0,0,0);
			for($throw=0;$throw<100;$throw++){
				$random = rand(1,8);
				if($random == 1){
					$eyes[0]++;
				}
				elseif($random == 2){
					$eyes[1]++;
				}
				elseif($random == 3){
					$eyes[2]++;
				}
				elseif($random == 4){
					$eyes[3]++;
				}
				elseif($random == 5){
					$eyes[4]++;
				}
				elseif($random == 6){
					$eyes[5]++;
				}
				elseif($random == 7){
					$eyes[6]++;
				}
				elseif($random == 8){
					$eyes[7]++;
				}
			}
			echo "<table border=1><tr><th>øjne</th><th>antal</th>";
			echo "<tr><td>1</td><td>$eyes[0]</td>";
			echo "<tr><td>2</td><td>$eyes[1]</td>";
			echo "<tr><td>3</td><td>$eyes[2]</td>";
			echo "<tr><td>4</td><td>$eyes[3]</td>";
			echo "<tr><td>5</td><td>$eyes[4]</td>";
			echo "<tr><td>6</td><td>$eyes[5]</td>";
			echo "<tr><td>7</td><td>$eyes[6]</td>";
			echo "<tr><td>8</td><td>$eyes[7]</td>";
        ?>
        <footer>&copy; Frederik Mattern</footer>
	</body>
</html>